package me.zhengjie.modules.management.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;
import java.sql.Timestamp;

/**
 * @website https://docs.auauz.net
 * @Description:公告信息
 * @Auther: chao.ji
 * @Date: 2020/12/15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MrNotice{

    @ApiModelProperty("公告id")
    Integer id;

    @NotBlank(message = "公告信息不能为空！")
    @ApiModelProperty("公告信息")
    String notice;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Timestamp createDateTime;

    @ApiModelProperty("创建人")
    private String createUserId;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Timestamp modifyDateTime;

    @ApiModelProperty("修改人")
    private String modifyUserId;

}
